import http from '@/common/http/index.js';

const API_PREFIX = '/system/notice';

export * from './push.js';

export function fetchGetNoticeList(values = {}) {
  return http.post(API_PREFIX + '/list', values);
}

export function fetchGetNotice(noticeId) {
  return http.get(API_PREFIX + `/detail/${noticeId}`);
}

export function fetchAddNotice(params) {
  return http.post(API_PREFIX + '/insert', params);
}

export function fetchUpdateNotice(params) {
  return http.post(API_PREFIX + '/update', params);
}

export function fetchUpdateNoticeStatus(params) {
  return http.post(API_PREFIX + '/update/status', params);
}

export function fetchDeleteNotice(ids) {
  return http.post(API_PREFIX + '/delete', ids);
}
